package com.sunc.demo.order.controller;

import com.sunc.demo.order.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    TestService testService;

    @PostMapping("/test")
    public String test(String name){
        return testService.say(name);
    }

}
